package com.fuyu.web.kaogong.security;

import com.fuyu.system.action.Ipermission;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 获取权限列表
 */
@Slf4j
@Component
public class Permission implements Ipermission {
    @Override
    public List<String> getPermissionList(String userId) {
        log.info("\n用户id为{}正在获取权限", userId);
        List<String> permissionList = new ArrayList<>();
        permissionList.add("sys:use:test");
        log.info("\n用户权限列表:{}", permissionList);
        return permissionList;
    }
}
